<template>
  <div class="button-box">
    <!--    写一个按钮-->
    <el-button type="primary" @click="sendMsg">发送</el-button>
    <dialogRef ref="onDialogRef"/>
  </div>
</template>

<script setup lang="ts">

import {ref, reactive, onMounted, watch, defineAsyncComponent} from 'vue'

const dialogRef = defineAsyncComponent(() => import('./component/dialogPage.vue'))
//弹窗的节点
const onDialogRef = ref()

// 如果是打开详情
//           ||
//           ||
//           ||
// const sendMsg = (row:any) =>{
//
// }


const sendMsg = () => {
  onDialogRef.value.openDialog()
}
</script>

<style scoped lang="scss">

</style>